// -----------------------------------------------------------------------
//  <copyright file="DictionaryTypeByKeywordSpec.cs" company="LiuliuSoft">
//      Copyright (c) 2025 66SOFT. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025-10-17 01:10</last-date>
// -----------------------------------------------------------------------

using DaprPlus.DataDicts.Domain.Entities;
using DaprPlus.Specifications;


namespace DaprPlus.DataDicts.Domain.Specs;

public class DictionaryTypeByKeywordSpec(string? keyword)
    : SpecificationBase<DictionaryType>(m => keyword == null || m.Name.Contains(keyword) || m.Code.Contains(keyword));
